package Day01;

class Person{
    private String name;
    public Person(String name){
        this.name = name;
    }
}
public class Auto{
    public static void main(String[] args){
        //创建一个person对象，赋给p变量
        Person p = new Person("孙悟空");
        System.out.println(p);
        System.out.println(p.toString());
    }
}
